<html>
<head><meta charset="utf-8"><title>not getting suggestions on this case ... · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html">not getting suggestions on this case ...</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="217762789"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217762789" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217762789">(Nov 24 2020 at 14:45)</a>:</h4>
<p>Hi, rust-analyzer on vim with my configuration is not showing suggesting in a case like ...</p>



<a name="217762903"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217762903" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217762903">(Nov 24 2020 at 14:46)</a>:</h4>
<div class="codehilite" data-code-language="Rust"><pre><span></span><code><span class="w">    </span><span class="kd">let</span><span class="w"> </span><span class="n">some_char_vec</span>: <span class="nb">Vec</span><span class="o">&lt;</span><span class="kt">char</span><span class="o">&gt;</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">some_string</span><span class="p">.</span><span class="n">chars</span><span class="p">().</span><span class="n">collect</span><span class="p">();</span><span class="w"></span>
<span class="w">    </span><span class="n">some_char_vec</span><span class="p">.</span><span class="w"></span>
</code></pre></div>



<a name="217762926"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217762926" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217762926">(Nov 24 2020 at 14:46)</a>:</h4>
<p>when I write <code>some_char_vec.</code> I don't get anything</p>



<a name="217762959"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217762959" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217762959">(Nov 24 2020 at 14:46)</a>:</h4>
<p>I'm not sure if this is a limitation, a problem in my configuration or something</p>



<a name="217765404"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217765404" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217765404">(Nov 24 2020 at 15:04)</a>:</h4>
<p>that should very much work. Do you get suggestions for other standard library types? Since the type is explicitly specified, this can't really be a type inference problem, so the only reason this could fail is if <code>Vec</code> doesn't resolve</p>



<a name="217765582"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217765582" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217765582">(Nov 24 2020 at 15:05)</a>:</h4>
<p>I do get suggestions yeah for other standard library types</p>



<a name="217765809"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217765809" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217765809">(Nov 24 2020 at 15:07)</a>:</h4>
<p><a href="/user_uploads/4715/mUHF0rTJfAhgPMCUw2ckcUg5/image.png">image.png</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/mUHF0rTJfAhgPMCUw2ckcUg5/image.png" title="image.png"><img src="/user_uploads/4715/mUHF0rTJfAhgPMCUw2ckcUg5/image.png"></a></div>



<a name="217765842"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217765842" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217765842">(Nov 24 2020 at 15:08)</a>:</h4>
<p><code>some_char_vec.</code> doesn't return anything</p>



<a name="217765982"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217765982" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217765982">(Nov 24 2020 at 15:08)</a>:</h4>
<p>that's really weird. does go to definition work on <code>Vec</code>?</p>



<a name="217770013"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217770013" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217770013">(Nov 24 2020 at 15:37)</a>:</h4>
<p>I was seeing an issue earlier where this happened and my log was spammed with warning messages from the client saying that it did not expect a command (vscode client side code action stuff)</p>



<a name="217770030"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217770030" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217770030">(Nov 24 2020 at 15:37)</a>:</h4>
<p>It went away after I restarted r-a</p>



<a name="217807714"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217807714" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217807714">(Nov 24 2020 at 20:14)</a>:</h4>
<p>to be honest I have no idea</p>



<a name="217807732"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/not%20getting%20suggestions%20on%20this%20case%20.../near/217807732" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Santiago Pastorino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/not.20getting.20suggestions.20on.20this.20case.20.2E.2E.2E.html#217807732">(Nov 24 2020 at 20:14)</a>:</h4>
<p>I'm switching to <code>LanguageClient-neovim</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>